package com.qiange.stumanager;

import com.qiange.stumanager.controller.StudentController;
import com.qiange.stumanager.controller.TeacherController;

import java.io.File;
import java.util.Scanner;

public class entry {
    public static void main(String[] args) {
        StudentController studentController = new StudentController();
        TeacherController teacherController = new TeacherController();
        Scanner sc = new Scanner(System.in);

        boolean flag = true;
        while (flag) {
            System.out.println("欢迎访问信息管理系统");
            System.out.println("1. 访问学生信息管理系统");
            System.out.println("2. 访问教师信息管理系统");
            System.out.println("3. 退出");

            System.out.println("请输入您的选择");
            String choice = sc.next();

            switch (choice) {
                case "1":
                    studentController.start();
                    break;
                case "2":
                    teacherController.start();
                    break;
                case "3":
                    System.out.println("感谢使用");
                    flag = false;
                    break;
                default:
                    System.out.println("您的输入有误");
                    break;
            }
        }

    }
}
